<template>
	<view class="passmian">
		<view class="main">
			<view class="items">
				<view class="field">
					出土项目名称
				</view>
				<view class="content">
					{{detailmsg.siteName || '暂无' }}
				</view>
			</view>
			<view class="items">
				<view class="field">
					所在街镇
				</view>
				<view class="content">
					{{detailmsg.street || '暂无' }}
				</view>
			</view>
			<view class="items">
				<view class="field">
					场地地址
				</view>
				<view class="content">
					{{detailmsg.siteAddress || '暂无' }}
				</view>
			</view>
			<view class="items">
				<view class="field">
					出土开始时间
				</view>
				<view class="content"  @click="showcalendar = true"  style="color: #363A44;" v-if="checkop==1"  >
					{{time || '暂无' }}
				</view>
				<view class="content" v-else  >
					{{time || '暂无' }}
				</view>
				
			</view>
			<view class="items">
				<view class="field"  >
					预计结束时间
				</view>
				<view class="content" @click="showcalendar = true"  style="color: #363A44;" v-if="checkop==1"  >
					{{time1 || '暂无' }}
				</view>
				<view class="content" v-else >
					{{time1 || '暂无' }}
				</view>
				
			</view>
			<view class="item">
				<view class="field">
					责任单位
				</view>
				<view class="content">
					
				</view>
			</view>
			<view class="item">
				<view class="field">
					反馈信息
				</view>
				<view class="content">
					通过审核
				</view>
			</view>
			<view class="item">
				<view class="field">
					意见
				</view>
				<view class="content">
					通过审核
				</view>
			</view>
			<view class="item">
				<view class="download">
					<view class=""  >
						渣土出土文件审核
					</view>
					<img src="/static/files.png" alt="">
				</view>
			</view>
		</view>
		<u-toast ref="uToast" />
	</view>
</template>

<script>
	import {
		getOrderDetail,
		getWorkOrderLogs,
		getTakeTask,
		postOrderHandle,
		orgByNodeId,
		allocate,
		allocatedo,
		getPdf,
		detailById,
		postWithdraw,
		postOrderAudit,
		getTransferDepartment,
		getNextPersons,
		postOrderDispatch,
		postCheck
	} from '@/pages/api/orderp/orderp.js'
	export default {
		data(){
			return {
				id:'',
				nodeId:'',
				idd:'',
				type_value:'工单核验',
				detailmsg:{}
			}
		},
		onLoad(op) {
			this.id = op.id
			this.nodeId = op.nodeId
			this.idd = op.idd
		},
		onBackPress(event){
			console.log(event)  
			uni.navigateTo({
				url: '/pages/index/approval/index'
			})
		},
		methods:{
			getdetail(){
				getByOrdersId({
					ordersId: this.idd
				}).then(res => {
					console.log(res, 333)
					this.detailmsg = res
				})
			},
			taketask(){
				console.log(this.id)
				uni.showModal({
					title: '提示',
					content: '是否确定提交核验？',
					confirmText: '确定',
					cancelText: '取消',
					success: res => {
						if (res.confirm) {
							
						} else if (res.cancel) {
				
							console.log('用户点击取消', this, that);
						}
					}
				});
			}
		}
	}
</script>

<style lang="scss" scoped >
	.passmian{
		height: 100vh;
		width: 750rpx;
		background-color: #FFFFFF;
		display: flex;
		flex-direction: column;
		.main{
			flex: 1;
			font-size: 23rpx;
			.items {
				display: flex;
				padding: 26rpx 0 26rpx 0;
				font-size: 32rpx;
				margin-left: 32rpx;
				margin-right: 32rpx;
				border-bottom: 2rpx solid #E8E9EC;
			
				.field {
					width: 242rpx;
					color: #B3B5B9;
					margin-right: 32rpx;
			
					.showpdf {
						margin-top: 16rpx;
						height: 200rpx;
						width: 200rpx;
						border: 1rpx solid #E8E9EC;
						border-radius: 10rpx;
						display: flex;
						justify-content: center;
						align-items: center;
			
						.pho {
							height: 200rpx;
							width: 200rpx;
						}
			
						.pdf {
			
							height: 128rpx;
							width: 104rpx;
						}
					}
				}
			
				.content {
					width: 440rpx;
					color: #B3B5B9;
					// color: #363A44;
				}
			}
				.item {
					display: flex;
					padding: 42rpx 0 22rpx 0;
					font-size: 32rpx;
					margin-left: 32rpx;
					margin-right: 32rpx;
					.field {
						width: 192rpx;
						color: #B3B5B9;
						margin-right: 32rpx;
					}
					.content {
						word-wrap:break-word;
						width: 440rpx;
						color: #363A44;
					}
					.download{
						color: #428FFC;
						font-size: 28rpx;
						height: 56rpx;
						width: 336rpx;
						padding-left: 28rpx;
						border: 2rpx solid  #428FFC;
						display: flex;
						border-radius: 50rpx;
						line-height: 56rpx;
						img{
							margin-left: 16rpx;
							margin-top: 11rpx;
							width: 32rpx;
							height: 28rpx;
						}
					}
				}
		}
		.footer {
			display: flex;
			justify-content: center;
			
			width: 750rpx;
			height: 128rpx;
			background-color: #FFFFFF;
			font-size: 29rpx;
			box-shadow: 2rpx 0 6rpx rgba(0, 0, 0, .12), 0 0 6rpx rgba(0, 0, 0, .04);
		
			.cancel {
				height: 87rpx;
				width: 339rpx;
				border: 1rpx solid #428FFC;
				border-radius: 50rpx;
				color: #428FFC;
				margin-top: 14rpx;
				// margin-left: 32rpx;
			}
		
			.confim {
				height: 87rpx;
				width: 339rpx;
				border: 1rpx solid #428FFC;
				border-radius: 50rpx;
				background-color: #428FFC;
				color: #FFFFFF;
				margin-top: 14rpx;
				margin-left: 16rpx;
			}
		
			.taketask {
				height: 87rpx;
				width: 692rpx;
				line-height: 87rpx;
				border: 1rpx solid #428FFC;
				border-radius: 50rpx;
				background-color: #428FFC;
				color: #FFFFFF;
				margin-top: 14rpx;
			}
		}
	}
</style>
